package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import cc.comac.mom.bean.EquipDevAreaDef;
import cc.comac.mom.bean.EquipDevAreaDefBean;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipDevAreaDefService {
	
	@RequestMapping(value = "/p/cs/EquipDevAreaDefService/save",method = RequestMethod.POST)
	ResultBean save(@RequestBody EquipDevAreaDef obj);
	
	@RequestMapping(value = "/p/cs/EquipDevAreaDefService/update",method = RequestMethod.POST)
	ResultBean update(@RequestBody EquipDevAreaDef obj);
	
	@RequestMapping(value = "/p/cs/EquipDevAreaDefService/delete",method = RequestMethod.POST)
	ResultBean delete(@RequestBody EquipDevAreaDef obj);
	
	@RequestMapping(value = "/p/cs/EquipDevAreaDefService/getById",method = RequestMethod.POST)
	EquipDevAreaDef getById(@RequestBody EquipDevAreaDef obj);
	
	@RequestMapping(value = "/p/cs/EquipDevAreaDefService/selectByCondition",method = RequestMethod.POST)
	EquipDevAreaDefBean selectByCondition(@RequestBody EquipDevAreaDef obj);
	
	@RequestMapping(value = "/p/cs/EquipDevAreaDefService/getAreaNameByEquipTypeId",method = RequestMethod.POST)
	List<EquipDevAreaDef> getAreaNameByEquipTypeId(@RequestParam(value = "equipTypeId") long equipTypeId);
	
	@RequestMapping(value = "/p/cs/EquipDevAreaDefService/getAreaNameByDevId",method = RequestMethod.POST)
	public ResultBean getAreaNameByDevId(@RequestParam(value = "id") long id);
}
